import time

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options =Options()
chrome_options .add_argument("--headless")
chrome_options .add_argument("‐‐disable‐gpu")
driver = webdriver.Chrome(options=chrome_options )

driver.get("https://www.baidu.com")
driver.save_screenshot("1.png")
time.sleep(2)
